package com.atwisdom.star.common.actionType.auth;

/**************************************************************************************
 * 方法枚举：需要同步BSL中的方法
 * urlPath：auth/role, service: RoleBslServiceImpl
 **************************************************************************************/
public enum RoleActionType {
    //操作
    ROLE_ADD("ADD","add","添加"),
    ROLE_BATCH_ADD("BATCH_ADD","batchAdd","批量添加"),
    ROLE_UPDATE("UPDATE","update","更新"),
    ROLE_BATCH_UPDATE("BATCH_UPDATE","batchUpdate","批量更新"),
    ROLE_DELETE("DELETE","delete","删除"),
    ROLE_BATCH_DELETE("BATCH_DELETE","batchDelete","批量删除"),
    ROLE_DELETE_BY_ID("DELETE_BY_ID","deleteById","根据id进行删除"),
    ROLE_DELETE_BY_IDS("DELETE_BY_IDS","deleteByIds","根据id数组进行删除"),
    ROLE_QUERY("QUERY","query","查询"),
    ROLE_QUERY_BY_IDS("QUERY_BY_IDS","queryByIds","根据id数组查询"),
    ROLE_QUERY_BY_PAGE("QUERY_BY_PAGE","queryByPage","分页查询");
    private final String code;
    private final String methodName;
    private final String description;

    public String getCode() {
        return code;
    }

    public String getMethodName() {
        return methodName;
    }

    public String getDescription() {
        return description;
    }

    RoleActionType(String code, String methodName, String description){
        this.code = code;
        this.methodName = methodName;
        this.description = description;
    }
}
